/* GitHub Markdown 样式 */
.markdown-body {
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
    color: var(--text-color);
    /*background-color: var(--background-color);*/
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
}

/* 基础排版 */
.markdown-body details,
.markdown-body figcaption,
.markdown-body figure {
    display: block;
}

/* 标题 */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-color);
}

.markdown-body h1 {
    font-size: 2em;
    border-bottom: 1px solid var(--border-color);
}

.markdown-body h2 {
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-color);
}

.markdown-body h3 {
    font-size: 1.25em;
}

/* 段落 */
.markdown-body p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* 链接 */
.markdown-body a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.markdown-body a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

/* 强调文本 */
.markdown-body strong {
    font-weight: 600;
}

/* 表格 */
.markdown-body table {
    width: 100%;
    overflow: auto;
    margin: 1rem 0;
    border-collapse: collapse;
}

.markdown-body table th,
.markdown-body table td {
    padding: 6px 13px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.markdown-body table th {
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* 列表 */
.markdown-body ul,
.markdown-body ol {
    padding-left: 20px;
}

.markdown-body ul li,
.markdown-body ol li {
    margin-bottom: 0.5rem;
}

/* 引用 */
.markdown-body blockquote {
    margin: 1em 0;
    padding: 0 1em;
    border-left: 0.25em solid var(--border-color);
    color: var(--subtle-text-color);
}

.markdown-body img {
    max-width: 100%;
}
